﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="add-student.aspx.cs" Inherits="Plato.admin.students.add_student" %>

<%@ Register Assembly="Infragistics4.WebUI.UltraWebGrid.v10.2, Version=10.2.20102.1011, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.UltraWebGrid" TagPrefix="igtbl" %>

<%@ Register Assembly="Infragistics4.Web.v10.2, Version=10.2.20102.1011, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.Web.UI.GridControls" TagPrefix="ig" %>

<%@ Register Assembly="Infragistics4.WebUI.WebDataInput.v10.2, Version=10.2.20102.1011, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.WebDataInput" TagPrefix="igtxt" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Add/ Edit Student</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        Please enter detail:
    </div>
    <div style="width: 100%; height: 100%">
        <ig:WebTab ID="webTabStudent" runat="server" Height="100%" Width="100%" DisplayMode="Scrollable"
            EnableActivation="True" SelectedIndex="1">
            <Tabs>
                <ig:ContentTabItem runat="server" Text="General">
                    <Template>
                        <table>
                            <tr>
                                <td>
                                    Registration ID:<span style="color: Red">*</span>
                                </td>
                                <td>
                                    <ig:WebTextEditor ID="webTxtRegistrationId" runat="server">
                                    </ig:WebTextEditor>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    First Name: <span style="color: Red">*</span>
                                </td>
                                <td>
                                    <ig:WebTextEditor ID="WebTextEditor1" runat="server">
                                    </ig:WebTextEditor>
                                </td>
                                <td>
                                    Middle Name:
                                </td>
                                <td>
                                    <ig:WebTextEditor ID="webTxtMidName" runat="server">
                                    </ig:WebTextEditor>
                                </td>
                                <td>
                                    Last Name <span style="color: Red">*</span>
                                </td>
                                <td>
                                    <ig:WebTextEditor ID="webTxtLastName" runat="server">
                                    </ig:WebTextEditor>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Date of Birth:
                                </td>
                                <td>
                                    <ig:WebDatePicker ID="webDateDOB" runat="server">
                                    </ig:WebDatePicker>
                                </td>
                                <td>
                                    Gender:
                                </td>
                                <td>
                                    <asp:RadioButtonList ID="rblGender" RepeatDirection="Horizontal" runat="server">
                                        <asp:ListItem Text="Male" Selected="True" Value="1"></asp:ListItem>
                                        <asp:ListItem Text="Female" Value="2"></asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                        </table>
                        <br />
                    </Template>
                </ig:ContentTabItem>
                <ig:ContentTabItem runat="server" Text="Personal">
                    <Template>
                        <table>
                            <tr>
                                <td>
                                    Address:
                                </td>
                                <td colspan="2">
                                    <ig:WebTextEditor ID="webTxtAddress" TextMode="MultiLine" MultiLine-Rows="2" Width="100%"
                                        runat="server">
                                    </ig:WebTextEditor>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Home Phone:
                                </td>
                                <td>
                                    <ig:WebTextEditor ID="webTxtPhone" runat="server">
                                    </ig:WebTextEditor>
                                </td>
                                <td>
                                    Mobile #:
                                </td>
                                <td>
                                    <ig:WebTextEditor ID="webTxtMobile" runat="server">
                                    </ig:WebTextEditor>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Email:
                                </td>
                                <td>
                                    <ig:WebTextEditor ID="webTxtEmail" runat="server">
                                    </ig:WebTextEditor>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Image:
                                </td>
                                <td>
                                    <ajax:AsyncFileUpload ID="ajAsFupImage" UploaderStyle="Modern" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Additional Information:
                                </td>
                                <td colspan="2">
                                    <ig:WebTextEditor ID="webTxtAdditionalInfo" TextMode="MultiLine" MultiLine-Rows="3"
                                        Width="100%" runat="server">
                                    </ig:WebTextEditor>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4">
                                    <asp:Panel GroupingText="Student In Relation" runat="server">
                                        <table>
                                            <tr>
                                                <td>
                                                    Class:
                                                </td>
                                                <td>
                                                    <ig:WebDropDown ID="webddlSIRClass" runat="server">
                                                    </ig:WebDropDown>
                                                </td>
                                                <td>
                                                    Section:
                                                </td>
                                                <td>
                                                    <ig:WebDropDown ID="webddlSIRSection" runat="server">
                                                    </ig:WebDropDown>
                                                </td>
                                                <td>
                                                    Student:
                                                </td>
                                                <td>
                                                    <ig:WebDropDown ID="webddlStudent" runat="server">
                                                    </ig:WebDropDown>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="6" align="right">
                                                    <asp:Button ID="btnAddSIR" Text="Add" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="6">
                                                    <igtbl:UltraWebGrid ID="uwgSIR" runat="server" Height="200px" Width="100%">
                                                        <DisplayLayout AllowColSizingDefault="Free" AllowColumnMovingDefault="OnServer" 
                                                            AllowDeleteDefault="Yes" AllowSortingDefault="OnClient" 
                                                            AllowUpdateDefault="Yes" BorderCollapseDefault="Separate" 
                                                            HeaderClickActionDefault="SortMulti" Name="uwgSIR" RowHeightDefault="20px" 
                                                            RowSelectorsDefault="No" SelectTypeRowDefault="Extended" 
                                                            StationaryMargins="Header" StationaryMarginsOutlookGroupBy="True" 
                                                            TableLayout="Fixed" Version="4.00" ViewType="OutlookGroupBy">
                                                            <FrameStyle BackColor="Window" BorderColor="InactiveCaption" 
                                                                BorderStyle="Solid" BorderWidth="1px" Font-Names="Microsoft Sans Serif" 
                                                                Font-Size="8.25pt" Height="200px" Width="100%">
                                                            </FrameStyle>
                                                            <Pager MinimumPagesForDisplay="2">
                                                                <PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
                                                                <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" 
                                                                    WidthTop="1px" />
                                                                </PagerStyle>
                                                            </Pager>
                                                            <EditCellStyleDefault BorderStyle="None" BorderWidth="0px">
                                                            </EditCellStyleDefault>
                                                            <FooterStyleDefault BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
                                                                <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" 
                                                                    WidthTop="1px" />
                                                            </FooterStyleDefault>
                                                            <HeaderStyleDefault BackColor="LightGray" BorderStyle="Solid" 
                                                                HorizontalAlign="Left">
                                                                <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" 
                                                                    WidthTop="1px" />
                                                            </HeaderStyleDefault>
                                                            <RowStyleDefault BackColor="Window" BorderColor="Silver" BorderStyle="Solid" 
                                                                BorderWidth="1px" Font-Names="Microsoft Sans Serif" Font-Size="8.25pt">
                                                                <Padding Left="3px" />
                                                                <BorderDetails ColorLeft="Window" ColorTop="Window" />
                                                            </RowStyleDefault>
                                                            <GroupByRowStyleDefault BackColor="Control" BorderColor="Window">
                                                            </GroupByRowStyleDefault>
                                                            <GroupByBox>
                                                                <BoxStyle BackColor="ActiveBorder" BorderColor="Window">
                                                                </BoxStyle>
                                                            </GroupByBox>
                                                            <AddNewBox Hidden="False">
                                                                <BoxStyle BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid" 
                                                                    BorderWidth="1px">
                                                                    <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" 
                                                                        WidthTop="1px" />
                                                                </BoxStyle>
                                                            </AddNewBox>
                                                            <ActivationObject BorderColor="" BorderWidth="">
                                                            </ActivationObject>
                                                            <FilterOptionsDefault>
                                                                <FilterDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" 
                                                                    BorderWidth="1px" CustomRules="overflow:auto;" 
                                                                    Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Size="11px" Height="300px" 
                                                                    Width="200px">
                                                                    <Padding Left="2px" />
                                                                </FilterDropDownStyle>
                                                                <FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">
                                                                </FilterHighlightRowStyle>
                                                                <FilterOperandDropDownStyle BackColor="White" BorderColor="Silver" 
                                                                    BorderStyle="Solid" BorderWidth="1px" CustomRules="overflow:auto;" 
                                                                    Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Size="11px">
                                                                    <Padding Left="2px" />
                                                                </FilterOperandDropDownStyle>
                                                            </FilterOptionsDefault>
                                                        </DisplayLayout>
                                                        <Bands>
                                                            <igtbl:UltraGridBand>
                                                                <Columns>
                                                                    <igtbl:UltraGridColumn Key="Name">
                                                                        <Header Caption="Name">
                                                                        </Header>
                                                                    </igtbl:UltraGridColumn>
                                                                    <igtbl:UltraGridColumn Key="Relation">
                                                                        <Header Caption="Relation">
                                                                            <RowLayoutColumnInfo OriginX="1" />
                                                                        </Header>
                                                                        <Footer>
                                                                            <RowLayoutColumnInfo OriginX="1" />
                                                                        </Footer>
                                                                    </igtbl:UltraGridColumn>
                                                                </Columns>
                                                                <AddNewRow View="NotSet" Visible="NotSet">
                                                                </AddNewRow>
                                                            </igtbl:UltraGridBand>
                                                        </Bands>
                                                    </igtbl:UltraWebGrid>
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                </td>
                            </tr>
                        </table>
                        <br />
                    </Template>
                </ig:ContentTabItem>
                <ig:ContentTabItem Text="Courses">
                    <Template>
                        <table width="100%">
                            <thead>
                                <tr>
                                    <th style="min-width: 45%">
                                        Selected Courses
                                    </th>
                                    <th style="width: 10%">
                                    </th>
                                    <th style="min-width: 45%">
                                        Available Courses
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td style="min-width: 45%">
                                        <asp:ListBox ID="lstSelectedCourses" Width="100%" runat="server"></asp:ListBox>
                                    </td>
                                    <td align="center">
                                        <div>
                                            <p>
                                                <asp:ImageButton ID="ImageButton1" ImageUrl="~/images/arrow-left.jpg" Height="20"
                                                    Width="20" runat="server" />
                                            </p>
                                        </div>
                                        <div>
                                            <asp:ImageButton ID="ImageButton2" ImageUrl="~/images/arrow-right.jpg" Height="20"
                                                Width="20" runat="server" />
                                        </div>
                                    </td>
                                    <td style="min-width: 45%">
                                        <asp:ListBox ID="lstAvailableCourses" Width="100%" runat="server"></asp:ListBox>
                                    </td>
                                </tr>
                            </tbody>
                            <br />
                        </table>
                        
                    </Template>
                    
                </ig:ContentTabItem>
                <ig:ContentTabItem Text="Parent">
                    <Template>
                        <div>
                            <asp:Panel ID="pnlParentFather" GroupingText="Father" runat="server">
                                <table>
                                    <tr>
                                        <td>
                                            First Name:
                                        </td>
                                        <td>
                                            <ig:WebTextEditor ID="webTxtFatFirstName" runat="server">
                                            </ig:WebTextEditor>
                                        </td>
                                        <td>
                                            Middle Name:
                                        </td>
                                        <td>
                                            <ig:WebTextEditor ID="webTxtFatMidName" runat="server">
                                            </ig:WebTextEditor>
                                        </td>
                                        <td>
                                            Last Name:
                                        </td>
                                        <td>
                                            <ig:WebTextEditor ID="webTxtFatLastName" runat="server">
                                            </ig:WebTextEditor>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Mobile:
                                        </td>
                                        <td>
                                            <ig:WebTextEditor ID="webTxtFatMobile" runat="server">
                                            </ig:WebTextEditor>
                                        </td>
                                        <td>
                                            Home:
                                        </td>
                                        <td>
                                            <ig:WebTextEditor ID="webTxtFatHomePhone" runat="server">
                                            </ig:WebTextEditor>
                                        </td>
                                        <td>
                                            Office:
                                        </td>
                                        <td>
                                            <ig:WebTextEditor ID="webTxtFatOfficePhone" runat="server">
                                            </ig:WebTextEditor>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            CNIC:
                                        </td>
                                        <td>
                                            <ig:WebTextEditor ID="webTXtFatCNIC" runat="server">
                                            </ig:WebTextEditor>
                                        </td>
                                        <td>
                                            Email:
                                        </td>
                                        <td>
                                            <ig:WebTextEditor ID="webTxtFatEmail" runat="server">
                                            </ig:WebTextEditor>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </div>
                        <div>
                            <asp:Panel ID="pnlParentMother" GroupingText="Mother" runat="server">
                                <table>
                                    <tr>
                                        <td>
                                            First Name:
                                        </td>
                                        <td>
                                            <ig:WebTextEditor ID="WebTextEditor2" runat="server">
                                            </ig:WebTextEditor>
                                        </td>
                                        <td>
                                            Middle Name:
                                        </td>
                                        <td>
                                            <ig:WebTextEditor ID="WebTextEditor3" runat="server">
                                            </ig:WebTextEditor>
                                        </td>
                                        <td>
                                            Last Name:
                                        </td>
                                        <td>
                                            <ig:WebTextEditor ID="WebTextEditor4" runat="server">
                                            </ig:WebTextEditor>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Mobile:
                                        </td>
                                        <td>
                                            <ig:WebTextEditor ID="WebTextEditor5" runat="server">
                                            </ig:WebTextEditor>
                                        </td>
                                        <td>
                                            Home:
                                        </td>
                                        <td>
                                            <ig:WebTextEditor ID="WebTextEditor6" runat="server">
                                            </ig:WebTextEditor>
                                        </td>
                                        <td>
                                            Office:
                                        </td>
                                        <td>
                                            <ig:WebTextEditor ID="WebTextEditor7" runat="server">
                                            </ig:WebTextEditor>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            CNIC:
                                        </td>
                                        <td>
                                            <ig:WebTextEditor ID="webTextMotherCNIC" runat="server">
                                            </ig:WebTextEditor>
                                        </td>
                                        <td>
                                            Email:
                                        </td>
                                        <td>
                                            <ig:WebTextEditor ID="WebTextEditor8" runat="server">
                                            </ig:WebTextEditor>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </div>
                        <br />
                    </Template>
                    
                </ig:ContentTabItem>
                <ig:ContentTabItem Text="Enrollment">
                    <Template>
                        <table>
                            <tr>
                                <td>
                                    Roll #:
                                </td>
                                <td>
                                    <ig:WebTextEditor ID="webTxtRollNum" runat="server">
                                    </ig:WebTextEditor>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Class: <span style="color: Red">*</span>
                                </td>
                                <td>
                                    <ig:WebDropDown ID="webddlClass" runat="server" Width="200px">
                                    </ig:WebDropDown>
                                </td>
                                <td>
                                    Section: <span style="color: red">*</span>
                                </td>
                                <td>
                                    <ig:WebDropDown ID="webddlSection" Width="200px" runat="server">
                                    </ig:WebDropDown>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Fee Type:
                                </td>
                                <td>
                                    <ig:WebDropDown ID="webddlFeeType" Width="200px" runat="server">
                                    </ig:WebDropDown>
                                </td>
                                <td>
                                    Scholarship:
                                </td>
                                <td>
                                    <ig:WebTextEditor ID="webTxtScholarship" runat="server">
                                    </ig:WebTextEditor>
                                </td>
                            </tr>
                        </table>
                        <br />
                    </Template>
                    
                </ig:ContentTabItem>
            </Tabs>
            <TabMoving Enabled="True" />
        </ig:WebTab>
    </div>
    <div>
        <asp:Button ID="btnSave" Text="Save" runat="server" />
        &nbsp;
        <asp:Button ID="btnDelete" Text="Delete" runat="server" />
    </div>
    </form>
</body>
</html>
